package org.dormi.learn.product.port.persist.event;


import lombok.Getter;
import lombok.Setter;
import org.dormi.learn.pojo.BasePO;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.time.LocalDateTime;

/**
 * 消息
 *
 * @author : dormi330
 * @version : 1.0
 */
@Getter
@Setter
@Entity(name = "p_event")
class BaseEventPO extends BasePO {

    private String type;
    private String body;
    private String bizId;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    private Integer publishState;
    private LocalDateTime publishTime;

}